home *** CD-ROM | disk | FTP | other *** search
- AINT(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- AAIINNTT, DDIINNTT, QQIINNTT - Performs truncation to integer
-
- SSYYNNOOPPSSIISS
- AAIINNTT (([AA==]_a[,,[KKIINNDD==]_k_i_n_d]))
- DDIINNTT (([AA==]_a))
- QQIINNTT (([AA==]_a))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- Fortran extension: QQIINNTT
-
- DDEESSCCRRIIPPTTIIOONN
- AAIINNTT is the generic function name; the others are specifics. These
- are elemental intrinsic functions. They accept the following
- arguments:
-
- _a Specify a single-precision, double-precision, or
- quad-precision argument. The data type and kind type for
- single-precision, double-precision, and quad-precision
- values differ depending on your platform. For
- platform-specific information, see the TERMINOLOGY section
- of the IINNTTRROO__IINNTTRRIINN(3I) man page.
-
- _k_i_n_d An integer scalar value. Must be a kind type allowed for _a.
- This argument is not accepted by the MIPSpro Fortran 77
- compiler.
-
- These functions truncate the fractional parts of their arguments, and
- the fractional parts are lost (not rounded).
-
- NNOOTTEESS
- The AAIINNTT and DDIINNTT intrinsic function names can be passed as arguments;
- the other cannot.
-
- RREETTUURRNN VVAALLUUEESS
- The return values are of type real and have a kind type as specified
- by the _k_i_n_d argument, if present. If _k_i_n_d is unspecified, the kind
- type is that of _a.
-
- AAIINNTT truncates the fractional part of its real argument.
-
- DDIINNTT truncates the fractional part of its double-precision argument.
-
- QQIINNTT truncates the fractional part of its quad-precision argument.
-
- EEXXAAMMPPLLEESS
- The following examples show the results of calling AAIINNTT with positive
- and negative arguments:
-
- AINT(3.4) = 3.0
- AINT(-3.4) = -3.0
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-